/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pcs.Lista02.Exercicio04;

import java.util.Scanner;

/**
 *
 * @author Daniel
 */
public class Exerc04 {
    public static void main(String[] args) {
        
    String [] conectores = { "e", "do", "da", "dos", "das","de", "di", "du" };
    String iniciais = "";
    boolean temConector = false;
    Scanner input = new Scanner (System.in);
        
        System.out.println("Entre com um Nome");
        String nome = input.nextLine();
        String [] partes = nome.split(" ");
        
//        for (int i = 0; i<conectores.length; i++){
//            if (nome.contains(conectores[i]))
//                temConector = true;
//        }
            
        for (int i = 0; i<nome.length(); i++){
            System.out.print(partes[i].subSequence(0, 1));
        }
       
        }
}
